Crate awint_core[−][src]
Expand description
Arbitrary width integers library
This is the core library of the awint
system of crates. This crate is
strictly no-std
and no-alloc
, not even requiring an allocator to be
compiled. This crate supplies the Bits
reference type and the InlAwi
storage type.
Almost all fallible functions in this crate returns a handleable Option
or
Result
. The only exceptions are some core::ops
implementations and the
bw
function.
Modules
Structs
A reference to the bits in an InlAwi
, ExtAwi
, or other backing
construct. This allows the same functions that operate on a dynamic ExtAwi
at runtime to also operate on an InlAwi
at compile time.
An arbitrary width integer with const generic bitwidth that can be stored inline on the stack like an array.
Enums
A serialization or deserialization error
Functions
Utility free function for converting a usize
to a NonZeroUsize
. This is
mainly intended for usage with literals, and shouldn’t be used for fallible
conversions.